Consecutive Differences

05.04.2023

Given a list of integers, find the positive difference between each consecutive pair of numbers, and put this into a new list of differences. Then, find the differences between consecutive pairs in this new list, and repeat until the list has a length of 1. Then, return the single value.The list will only contain integers, and will not be empty.

Blog_Description